import request from '@/router/axios';
import config from '@/config/website'

//列表
export const standingBookList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/standingbook/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}


//新建
export const standingBookAdd = (data) => {
    return request({
        url: '/api/blade-sale/standingbook/save',
        method: 'post',
        data
    })
}
//修改
export const standingBookUpdate = (data) => {
    return request({
        url: '/api/blade-sale/standingbook/update',
        method: 'post',
        data
    })
}
//查看
export const standingBookView = (id) => {
    return request({
        url: '/api/blade-sale/standingbook/detail',
        method: 'get',
        params: {
            id
        }
    })
}

//删除
export const standingBookDel = (ids) => {
    return request({
        url: '/api/blade-sale/standingbook/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
//产品要求子表
export const getResultList = (statementNo) => {
    return request({
        url: '/api/blade-sale/standingbook/list',
        method: 'get',
        params: {
            statementNo
        }
    })
}
//批量列表
export const standingBookAllList = (ids) => {
    return request({
        url: '/api/blade-sale/standingbooksub/list',
        method: 'get',
        params:{
            ids
        }
    })
}
//批量回款
export const standingBookAllUpdate = (standingBookSubList) => {
    return request({
        url: '/api/blade-sale/standingbooksub/submit',
        method: 'post',
        data:{
            standingBookSubList
        }
        
    })
}